home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample PMSAM / PMSAM Framework / RoboSamSlot / EnclosFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  2.1 KB  |  76 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        EnclosFile.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    David Akhond
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.  
  13.     To Do:
  14. */
  15.  
  16.  
  17. #ifndef _EncloseFileList_
  18. #define _EncloseFileList_
  19.  
  20. #ifndef __FILES__
  21. #include    "Files.h"
  22. #endif
  23.  
  24.  
  25. //-------------------------------------------------
  26. //        C E n c l o s F i l e S u m m a r y 
  27. //-------------------------------------------------
  28.  
  29. class CEnclosFileSummary {
  30. public:
  31.         CEnclosFileSummary(unsigned long  fileIndex, unsigned long fileSize, OSType fileType, OSType    fileCreator, StringPtr    fileName,
  32.                             unsigned long  resourceForkOffset, unsigned long  resourceForkLength, unsigned long  dataForkOffset,
  33.                             unsigned long  dataForkLength, unsigned short  fdInfo, unsigned long  fileCreationDate, unsigned long  fileModificationDate);
  34.         CEnclosFileSummary*        fLink;
  35.         unsigned long            fFileIndex;
  36.         unsigned long            fFileSize;
  37.         unsigned long            fResourceForkOffset;
  38.         unsigned long            fResourceForkLength;
  39.         unsigned long            fDataForkOffset;
  40.         unsigned long            fDataForkLength;
  41.         OSType                    fType;
  42.         OSType                    fCreator;
  43.         unsigned short            fFinderFlags;
  44.         unsigned long            fFileCreationDate;
  45.         unsigned long            fFileModificationDate;
  46.         Str255                    fRealName;
  47. };
  48.  
  49.  
  50.  
  51. //-------------------------------------------------
  52. //        C E n c l o s F i l e S u m m a r y L i s t 
  53. //-------------------------------------------------
  54.  
  55.  
  56. class CEnclosFileSummaryList {
  57. public:
  58.                             CEnclosFileSummaryList();
  59.                             ~CEnclosFileSummaryList();
  60.             
  61.     void                     Append(unsigned long  fileIndex, unsigned long fileSize, OSType fileType, OSType    fileCreator, StringPtr    fileName,
  62.                                     unsigned long  resourceForkOffset, unsigned long  resourceForkLength, unsigned long  dataForkOffset,
  63.                                     unsigned long  dataForkLength, unsigned short  fdInfo, unsigned long  fileCreationDate, unsigned long  fileModificationDate);
  64.                                     
  65.     void                    Append(CEnclosFileSummary*     enclosureFile);
  66.     CEnclosFileSummary*        operator[](long i);
  67.     
  68. private:
  69.     CEnclosFileSummary*        fHeadSummary;
  70.     CEnclosFileSummary*        fTailSummary;
  71.     long                    fCount;
  72.     
  73. };
  74.  
  75.  
  76. #endif